from src.components.mysql import get_mysql
from .models.website_shipping import WebsiteShipping


def get_test_by_id(id: int):
    with get_mysql() as db:
        test = db.query(WebsiteShipping).filter(WebsiteShipping.id == id).first()
        return test
